<!DOCTYPE html>

<html lang="cn">
	<head>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
        <title>@yield('title')</title>
        
        <meta name="csrf-token" content="{{ csrf_token() }}">

        <link rel="stylesheet" href="{{ asset('front/Content/commons.css') }}" />
        <link rel="stylesheet" type="text/css" href="{{ asset('front/Content/style.css') }}" />

        <script type="text/javascript" src="{{ asset('front/Scripts/jquery-1.9.1.min.js') }}"></script>
        <script type="text/javascript" src="{{ asset('front/Scripts/jquery.SuperSlide.2.1.js') }}"></script>
        <script type="text/javascript" src="{{ asset('front/Scripts/index.js') }}"></script>
		<link rel="shortcut icon" type="image/x-icon" href="{{ asset('favicon.ico') }}"/>
		<script src="https://cdn.bootcss.com/layer/3.1.0/layer.js"></script>
		<script type="text/javascript">
		var uid = {{intval(Auth::id())}};
$(function(){
	$.ajaxSetup({
	    headers: { 'X-CSRF-TOKEN' : '{{ csrf_token() }}' }
	}); 
	@if($errors)
		@foreach($errors->all() as $row)
			@if ($loop->first)
                 layer.msg('{{$row}}');
            @endif
		@endforeach
		
	@endif
})

		</script>


    </head>
<body>

@section('header')
@show
@yield('content')

@section('footer')
@show


</body>
</html>
